import 'package:flutter/material.dart';
import 'package:ost_flutter_module/common/styles.dart';
import 'package:ost_flutter_module/widget/custom_widget/custome_list_tile.dart';
import 'package:ost_flutter_module/widget/custom_widget/custome_radius_container.dart';

import '../../adapt.dart';

class DynamicCellListTileInfo extends StatelessWidget {
  final Widget leading;
  final String text;
  final String trailText;
  final bool enable;

  const DynamicCellListTileInfo({
    Key key,
    this.leading,
    this.text,
    this.trailText,
    this.enable = false,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return GContainer(
      child: Padding(
        padding: EdgeInsets.all(Adapt.px(0)),
        child: GListTile(
          leading: leading,
          text: text,
          trailing: Text(trailText,
              style: TextStyles.titleStyle, textAlign: TextAlign.end),
          enable: enable,
        ),
      ),
    );
  }
}
